##!/bin/bash

# 打包dist文件
echo "---------------------------------"
echo "start to build project"
npm run build
tar --no-xattrs -czvf dist.tar.gz dist
echo "---------------------------------"
echo "Project has been built "
echo "---------------------------------"
echo "start to deploy to server"
echo "---------------------------------"

/usr/bin/expect -f ./deploy.sh

echo "---------------------------------"
echo "Deploy to server has been completed"
echo "---------------------------------"
